package com.sz.designpattern.behavior11.mediator;

public class Test {
    public static void main(String[] args) {
        Lianjia mediator = new Lianjia();
        Purchaser purchaser = new Purchaser(mediator);
        Landlord landlord = new Landlord(mediator);

        mediator.setPurchaser(purchaser);
        mediator.setLandlord(landlord);

        landlord.send("sell one house");
        System.out.println("Test.main-------");
        purchaser.send("want one house");




    }
}
